package com.yuyou.tas.util.bean;

public class ReturnCode {

	public enum code{		
		_1001("1001","请求成功","请求成功"),
		_2001("2001","请求失败","Server Error"),
		_2002("2002","网关转发异常","网关转发异常"),
		_3001("3001","请求失败,toking为空或者已过期","toking为空或者已过期"),
		_3002("3002","请求失败,请求参数错误","请求失败,请求参数错误:"),
		_3003("3003","接口权限错误","接口权限错误");
		code(String code,String message,String lovelyMessage){
			this.code=code;
			this.message=message;
			this.lovelyMessage=lovelyMessage;
			
		}		
		
		private String code;
		private String message;
		private String lovelyMessage;
		
		
		public String getCode() {
			return code;
		}
		public String getMessage() {
			return message;
		}
		public String getLovelyMessage() {
			return lovelyMessage;
		}
		
		public String getLovelyMessage(String traceId) {
			return lovelyMessage+"["+traceId+"]";
		}
		
		public void setLovelyMessage(String lovelyMessage) {
			this.lovelyMessage = lovelyMessage;
		}
		

		
		
	}
	
	
}
